import $http from "./requst";
// 登陆
export const login = (data) =>
  $http({ url: "/admin/Login/login", method: "post", data });
// 支付记录
export const Userrecord = (data) =>
  $http({ url: "/admin/Userrecord", method: "post", data });

// 轮播图列表
export const Banner = (data) =>
  $http({ url: "/admin/Banner", method: "post", data });

// 删除轮播图
export function deleteBanner(data) {
  return $http({
    url: `/admin/Banner/delete`,
    method: "POST",
    data,
  });
}
// 新增轮播图
export function addBanner(data) {
  return $http({
    url: `/admin/Banner/add`,
    method: "POST",
    data,
  });
}
// 编辑轮播图
export function editBanner(data) {
  return $http({
    url: `/admin/Banner/edit`,
    method: "POST",
    data,
  });
}

// 帮助列表
export function Art(data) {
  return $http({
    url: `/admin/Art`,
    method: "POST",
    data,
  });
}
// 帮助删除
export function ArtDelete(data) {
  return $http({
    url: `/admin/Art/delete`,
    method: "POST",
    data,
  });
}

// 帮助新增
export function ArtAdd(data) {
  return $http({
    url: `/admin/Art/add`,
    method: "POST",
    data,
  });
}

// 帮助编辑
export function ArtEdit(data) {
  return $http({
    url: `/admin/Art/edit`,
    method: "POST",
    data,
  });
}
// 帮助回显
export function ArtShow(data) {
  return $http({
    url: `/admin/Art/show`,
    method: "POST",
    data,
  });
}

// 设置手续费
export function setPay(data) {
  return $http({
    url: `/admin/Configset/save`,
    method: "POST",
    data,
  });
}

// 设置手续费回显
export function setPayShow(data) {
  return $http({
    url: `/admin/Configset`,
    method: "POST",
    data,
  });
}

// 退款申请
export function tkRecord(data) {
  return $http({
    url: `/admin/Userrecord/tk`,
    method: "POST",
    data,
  });
}

// 退款申请操作
export function tkOperate(data) {
  return $http({
    url: `/admin/Userrecord/tkOperate`,
    method: "POST",
    data,
  });
}
// 修改密码
export function editPwd(data) {
  return $http({
    url: `/admin/Editpssword/editPwd`,
    method: "POST",
    data,
  });
}
// 合同记录
export function Contract(data) {
  return $http({
    url: `/admin/Contract`,
    method: "POST",
    data,
  });
}
// 合同详情
export function ContractDetails(data) {
  return $http({
    url: `/admin/Contract/details`,
    method: "POST",
    data,
  });
}
// 编辑协议
export function xySave(data) {
  return $http({
    url: `/admin/Configset/xySave`,
    method: "POST",
    data,
  });
}

// 回显协议
export function xyShow(data) {
  return $http({
    url: `/admin/Configset/xy`,
    method: "POST",
    data,
  });
}
// 删除合同
export function contractDel(data) {
  return $http({
    url: `admin/contract/contractDel`,
    method: "POST",
    data,
  });
}
// 支付金额统计
export function getPayMoney(data) {
  return $http({
    url: `admin/Userrecord/getPayMoney`,
    method: "POST",
    data,
  });
}
